package com.tianji.learning.controller;

import com.tianji.learning.domain.vo.SignResultVO;
import com.tianji.learning.service.ISignRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RequiredArgsConstructor
@RestController
@RequestMapping("/sign-records")
@Api(tags = "用户签到相关接口")
public class SignRecordController {
    private final ISignRecordService recordService;
    @ApiOperation("用户签到")
    @PostMapping()
    public SignResultVO addSignRecord(){
        return recordService.addSignRecord();
    }
    @ApiOperation("用户这个月的签到情况")
    @GetMapping
    public Byte[] querySignRecordByMonth(){
        return recordService.querySignRecordByMonth();
    }
}
